using System;
using System.Collections.Generic;
using System.Text;
using DTO;
using DAL;


namespace BUS
{
    public class tbtkkhBUS
    {
    
        public static void Insert(tbtkkhDTO tkkh)
        {
            tbtkkhDAL tbtkkhDAL = new tbtkkhDAL();
            tbtkkhDAL.Insert(tkkh);
        }
        public static void Update(tbtkkhDTO tkkh)
        {
            tbtkkhDAL tbtkkhDAL = new tbtkkhDAL();
            tbtkkhDAL.Update(tkkh);
        }
        public static void Delete(float iD)
        {
            tbtkkhDAL tbtkkhDAL = new tbtkkhDAL();
            tbtkkhDAL.Delete(iD);
        }
        public static tbtkkhDTOColection GET(string Where, int PageIndex, int PageSize,
                                        string OrderBy, string OrderDirection,
                                        out int TotalRecords)
        {
            tbtkkhDAL tbtkkhDAL = new tbtkkhDAL();
            return tbtkkhDAL.GET(Where, PageIndex, PageSize,
                            OrderBy, OrderDirection, out TotalRecords);
        }
    }
}
